<div class="breadcrum">
    <p>
        <a href="{$config->site_url('task/project')}">Task</a><span></span><small>Project</small>
    </p>
    <div class="clear"></div>
</div>
<div class="sub-content">
    <div class="navigation"> 
        <div class="pageRow">
            <div class="pageNav">
                <ul>
                    <li class="info"><strong>{$pagination.start|default:'0'} - {$pagination.end|default:'0'}</strong> dari <strong>{$pagination.total|default:'0'}</strong> Data</li>
                    {$pagination.data|default:''}
                </ul>
            </div>
            <div class="clear"></div>
        </div> 
    </div> 
    <!-- notification template -->
    {include file="base/templates/notification.html"}
    <!-- end of notification template--> 
    <table width="100%" class="table-view">
        <tbody>
            <tr> 
                <th width="51%">Nama</th> 
                <th width="20%">Klien</th> 
                <th width="20%">Tanggal</th> 
                <th width="5%">Status</th>  
                <th width="5%"></th>
            </tr>
            {foreach from=$rs_id key=no item=result}
            <tr {if ($no % 2) <> 0}class="blink-row"{/if}> 
                <td>
                    <b>{$result.project_name}</b><br />
                    PM : {$result.pm}<br />
                    Perusahaan : {$result.perusahaan_nama}
                </td> 
                <td valign="top">{$result.klien_nama}</td> 
                <td valign="top">{$result.project_startdate|date_format:'%d %B %Y'} s/d {$result.project_enddate|date_format:'%d %B %Y'}</td> 
                <td valign="top">
                    {if $result.project_status eq 'start'} 
                        <span class="tag-green">{$result.project_status|upper}</span>
                    {else}
                        <span class="tag-yellow">{$result.project_status|upper}</span>
                    {/if}
                    
                </td> 
                <td valign="top" align="center">
                    <a href="{$config->site_url({'task/project/detail/'|cat:$result.project_id})}" class="button-edit">Detail</a>                    
                </td>
            </tr>
            {foreachelse}
            <tr>
                <td colspan="5">Data masih kosong</td>
            </tr>
            {/foreach}
        </tbody>
    </table> 
</div>